package com.base.self.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

/**
 * <p>
 * 交易记录
 * </p>
 *
 * @author XiFYuW
 * @since 2020-11-15
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="PayDeal对象", description="交易记录")
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class PayDeal implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "交易单号")
    private String orderNo;

    @ApiModelProperty(value = "代理商id")
    private String parentId;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "交易金额")
    private BigDecimal money;

    @ApiModelProperty(value = "用户id")
    private String userId;

    @ApiModelProperty(value = "2:微信 1：支付宝")
    private Integer payWay;

    @ApiModelProperty(value = "0: 未处理 1已处理")
    private Integer status;

    @ApiModelProperty(value = "交易流水号")
    private String payDealNo;


}
